package com.fqgj.sentry.policy.client;


import com.fqgj.sentry.policy.entity.PcPolicySetsEntity;

import java.util.List;


/**
 * Created with IntelliJ IDEA.
 * User: yujianfu (mr.vencnet@gmail.com)
 * Date: 2017/7/12
 * Time: 下午4:58
 * <p>
 * 策略集服务
 */
public interface PolicySetService {

    /**
     * 添加策略集
     *
     * @param pcPolicySetsEntity
     * @return
     */
    Long insertPolicySet(PcPolicySetsEntity pcPolicySetsEntity);

    /**
     * 更新策略集
     *
     * @param pcPolicySetsEntity
     * @return
     */
    Boolean updatePolicySet(PcPolicySetsEntity pcPolicySetsEntity);

    /**
     * 根据
     *
     * @param id
     * @return
     */
    PcPolicySetsEntity selectOneById(Long id);

    /**
     * 获取策略集列表
     *
     * @param appId
     * @return
     */
    List<PcPolicySetsEntity> selectList(Long appId);


    /**
     * 根据策略集id来删除当前策略集
     *
     * @param id
     * @return
     */
    Boolean deletePolicySet(Long id);


    /**
     * 根据
     *
     * @return
     */
    PcPolicySetsEntity selectByAppIdAndEventId(Long appId, Long eventId);
}
